3.24 \(\int \frac{\sin (x)}{(a \cos (x)+b \sin (x))^3} \, dx\)

Optimal. Leaf size=15 \[ \frac{1}{2 a (a \cot (x)+b)^2} \]

[Out]

1/(2*a*(b + a*Cot[x])^2)

________________________________________________________________________________________

Rubi [A]  time = 0.0260682, antiderivative size = 19, normalized size of antiderivative = 1.27, number of steps used = 2, number of rules used = 2, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {3087, 37} \[ \frac{\tan ^2(x)}{2 a (a+b \tan (x))^2} \]

Antiderivative was successfully verified.

[In]

Int[Sin[x]/(a*Cos[x] + b*Sin[x])^3,x]

[Out]

Tan[x]^2/(2*a*(a + b*Tan[x])^2)

Rule 3087

Int[sin[(c_.) + (d_.)*(x_)]^(m_.)*(cos[(c_.) + (d_.)*(x_)]*(a_.) + (b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symb
ol] :> Dist[1/d, Subst[Int[(x^m*(a + b*x)^n)/(1 + x^2)^((m + n + 2)/2), x], x, Tan[c + d*x]], x] /; FreeQ[{a,
b, c, d}, x] && IntegerQ[n] && IntegerQ[(m + n)/2] && NeQ[n, -1] &&  !(GtQ[n, 0] && GtQ[m, 1])

Rule 37

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[((a + b*x)^(m + 1)*(c + d*x)^(n +
1))/((b*c - a*d)*(m + 1)), x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[b*c - a*d, 0] && EqQ[m + n + 2, 0] && NeQ
[m, -1]

Rubi steps

\begin{align*} \int \frac{\sin (x)}{(a \cos (x)+b \sin (x))^3} \, dx &=\operatorname{Subst}\left (\int \frac{x}{(a+b x)^3} \, dx,x,\tan (x)\right )\\ &=\frac{\tan ^2(x)}{2 a (a+b \tan (x))^2}\\ \end{align*}

Mathematica [B]  time = 0.0874972, size = 47, normalized size = 3.13 \[ \frac{a (a+b \sin (2 x))+2 b^2 \sin ^2(x)}{2 a \left (a^2+b^2\right ) (a \cos (x)+b \sin (x))^2} \]

Antiderivative was successfully verified.

[In]

Integrate[Sin[x]/(a*Cos[x] + b*Sin[x])^3,x]

[Out]

(2*b^2*Sin[x]^2 + a*(a + b*Sin[2*x]))/(2*a*(a^2 + b^2)*(a*Cos[x] + b*Sin[x])^2)

________________________________________________________________________________________

Maple [B]  time = 0.097, size = 29, normalized size = 1.9 \begin{align*} -{\frac{1}{{b}^{2} \left ( a+b\tan \left ( x \right ) \right ) }}+{\frac{a}{2\,{b}^{2} \left ( a+b\tan \left ( x \right ) \right ) ^{2}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(x)/(a*cos(x)+b*sin(x))^3,x)

[Out]

-1/b^2/(a+b*tan(x))+1/2*a/b^2/(a+b*tan(x))^2

________________________________________________________________________________________

Maxima [B]  time = 1.14235, size = 113, normalized size = 7.53 \begin{align*} \frac{2 \, \sin \left (x\right )^{2}}{{\left (a^{3} + \frac{4 \, a^{2} b \sin \left (x\right )}{\cos \left (x\right ) + 1} - \frac{4 \, a^{2} b \sin \left (x\right )^{3}}{{\left (\cos \left (x\right ) + 1\right )}^{3}} + \frac{a^{3} \sin \left (x\right )^{4}}{{\left (\cos \left (x\right ) + 1\right )}^{4}} - \frac{2 \,{\left (a^{3} - 2 \, a b^{2}\right )} \sin \left (x\right )^{2}}{{\left (\cos \left (x\right ) + 1\right )}^{2}}\right )}{\left (\cos \left (x\right ) + 1\right )}^{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)/(a*cos(x)+b*sin(x))^3,x, algorithm="maxima")

[Out]

2*sin(x)^2/((a^3 + 4*a^2*b*sin(x)/(cos(x) + 1) - 4*a^2*b*sin(x)^3/(cos(x) + 1)^3 + a^3*sin(x)^4/(cos(x) + 1)^4
 - 2*(a^3 - 2*a*b^2)*sin(x)^2/(cos(x) + 1)^2)*(cos(x) + 1)^2)

________________________________________________________________________________________

Fricas [B]  time = 0.478099, size = 257, normalized size = 17.13 \begin{align*} -\frac{4 \, a b^{2} \cos \left (x\right )^{2} - a^{3} - 3 \, a b^{2} - 2 \,{\left (a^{2} b - b^{3}\right )} \cos \left (x\right ) \sin \left (x\right )}{2 \,{\left (a^{4} b^{2} + 2 \, a^{2} b^{4} + b^{6} +{\left (a^{6} + a^{4} b^{2} - a^{2} b^{4} - b^{6}\right )} \cos \left (x\right )^{2} + 2 \,{\left (a^{5} b + 2 \, a^{3} b^{3} + a b^{5}\right )} \cos \left (x\right ) \sin \left (x\right )\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)/(a*cos(x)+b*sin(x))^3,x, algorithm="fricas")

[Out]

-1/2*(4*a*b^2*cos(x)^2 - a^3 - 3*a*b^2 - 2*(a^2*b - b^3)*cos(x)*sin(x))/(a^4*b^2 + 2*a^2*b^4 + b^6 + (a^6 + a^
4*b^2 - a^2*b^4 - b^6)*cos(x)^2 + 2*(a^5*b + 2*a^3*b^3 + a*b^5)*cos(x)*sin(x))

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)/(a*cos(x)+b*sin(x))**3,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [A]  time = 1.17752, size = 27, normalized size = 1.8 \begin{align*} -\frac{2 \, b \tan \left (x\right ) + a}{2 \,{\left (b \tan \left (x\right ) + a\right )}^{2} b^{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x)/(a*cos(x)+b*sin(x))^3,x, algorithm="giac")

[Out]

-1/2*(2*b*tan(x) + a)/((b*tan(x) + a)^2*b^2)